using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace dotnet_ef_admin.Src.Models;

[Table("role_menu")]
public class RolesOnMenus {
    [Key] [Column(Order = 0)] public int RoleId { get; set; }

    public Role? Role { get; set; }

    [Key] [Column(Order = 1)] public int MenuId { get; set; }

    public Menu? Menu { get; set; }
}